<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <!--设置页面编码方式-->
    <meta charset="utf-8">
    <!-- 这是个是IE8的专用标记,用来指定IE8浏览器去模拟某个特定版本的IE浏览器的渲染方式-->
    <!--X-UA-Compatible 是针对 IE8 版本的一个特殊文件头标记，用于为 IE8 指定不同的页面渲染模式-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--name项：常用的选项有Keywords(关键字) ，description(网站内容描述)，author(作者)，robots(机器人向导)等。 -->
    <!--content项：根据name项的定义来决定此项填写什么样的字符串。 -->
    <!--
    让一些搜索引擎搜索到你的网页，代码可以这样写：
        < Meta Name=" Keywords" Content="网页关键字" >
        < Meta Name=" description" Content="网页描述文字" >
        -->
    <meta name="description" content="美年旅游">
    <meta name="keywords" content="美年旅游">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!--网页标签标题-->
    <title>美年旅游</title>
    <!-- 引入CSS样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <!--网页内部嵌入的样式-->
    <style type="text/css">
    .el-main{
        position: absolute;
        top: 70px;
        bottom: 0px;
        left: 200px;
        right: 10px;
        padding: 0;
    }
    </style>
</head>

<body class="hold-transition skin-purple sidebar-mini">
    <div id="app">
        <!--
        <el-container>：外层容器。
        当子元素中包含<el-header>或<el-footer>时，内部子元素会垂直排列。针对其他元素，则会水平排列。
        <el-header>：顶部栏容器。
        <el-aside>：侧边栏容器。
        <el-main>：内容区域容器。
        <el-footer>：底部栏容器。
        -->
        <el-container>
            <!--顶部栏容器-->
            <el-header  class="main-header" style="height:70px;">
                <!--创建一个与页面等宽度的导航条-->
                <nav class="navbar navbar-static-top" :class=''>
                    <!-- 引入Logo图片链接 -->
                    <a href="#" class="logo" style="text-align:center">
                        <span class="logo-lg"><img src="../img/logo.png"></span>
                    </a>
                    <div class="right-menu">
                        <span class="help"><i class="fa fa-exclamation-circle" aria-hidden="true"></i>帮助</span>
                        <!--下拉菜单，点击下面img引入的图片或文字,可以打开-->
                        <el-dropdown class="avatar-container right-menu-item" trigger="click">
                            <div class="avatar-wrapper">
                                <img src="../img/user2-160x160.jpg" class="user-avatar">
                                尚硅谷
                            </div>
                            <!--下拉菜单中的菜单项-->
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item divided>
                                    <span style="display:block;">修改密码</span>
                                </el-dropdown-item>
                                <el-dropdown-item divided>
                                        <span style="display:block;"><a href="">退出</a></span>
                                    </el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                </nav>
            </el-header>

            <el-container>
                <!--左侧 侧边栏容器-->
                <el-aside width="200px">
                    <!--侧边下拉菜单栏-->
                    <!--定义了当前的导航菜单及属性-->
                    <el-menu>
                        <!--el-submenu定义了子菜单栏-->
                        <!--v-for：迭代数组menuList，获取菜单标题-->
                        <el-submenu v-for="menu in menuList" :index="menu.path">
                            <template slot="title">
                                <i class="fa" :class="menu.icon"></i>
                                <!--显示菜单标题-->
                                {{menu.title}}
                            </template>
                            <!--获取菜单的子菜单，将其迭代显示出来-->
                            <template v-for="child in menu.children">
                                <!--el-menu-item为具体的菜单项-->
                                <!--组件从上到下分别是：el-menu, el-submenu, el-menu-item-group, el-menu-item。-->
                                <el-menu-item :index="child.path">
                                    <a :href="child.linkUrl" target="right">{{child.title}}</a>
                                </el-menu-item>
                            </template>
                        </el-submenu>
                    </el-menu>
                </el-aside>
                <!--右侧 侧边工具栏-->
                <el-container>
                  <!--页面布局，内嵌一个页面，默认打开travelitem.htm此页面-->
                    <iframe name="right" class="el-main" src="travelitem.html" width="100%" height="580px" frameborder="1"></iframe>
                </el-container>
            </el-container>
        </el-container>
    </div>
</body>
<!-- 引入组件库 -->
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script src="../js/axios-0.18.0.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data:{
            menuList:[
                {
                    "path": "1",
                    "title": "旅行社",
                    "icon":"fa-dashboard",
                    "children": []
                },
                {
                    "path": "2",
                    "title": "旅行管理",
                    "icon":"fa-user-md",
                    "children": [
                        {
                            "path": "/2-1",
                            "title": "会员档案",
                            "linkUrl":"member.html",
                            "children":[]
                        },
                        {
                            "path": "/2-2",
                            "title": "会员信息上传",
                            "children":[]
                        },
                        {
                            "path": "/2-3",
                            "title": "会员统计",
                            "linkUrl":"all-item-list.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "3",
                    "title": "旅游后台",
                    "icon":"fa-tty",
                    "children": [
                        {
                            "path": "/3-1",
                            "title": "分公司地址",
                            "linkUrl":"address.html",
                            "children":[]
                        },
                        {
                            "path": "/3-2",
                            "title": "旅游预约",
                            "linkUrl":"ordersetting.html",
                            "children":[]
                        },
                        {
                            "path": "/3-3",
                            "title": "套餐游",
                            "linkUrl":"setmeal.html",
                            "children":[]
                        },
                        {
                            "path": "/3-4",
                            "title": "跟团游",
                            "linkUrl":"travelgroup.html",
                            "children":[]
                        },
                        {
                            "path": "/3-5",
                            "title": "自由行",
                            "linkUrl":"travelitem.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "4",
                    "title": "旅游评估",
                    "icon":"fa-stethoscope",
                    "children":[
                        {
                            "path": "/4-1",
                            "title": "大家一起游",
                            "linkUrl":"all-medical-list.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "5",     //菜单项所对应的路由路径
                    "title": "信息系统",     //菜单项名称
                    "icon":"fa-heartbeat",
                    "children":[//是否有子菜单，若没有，则为[]
                        {
                            "path": "/5-1",
                            "title": "注册会员按月份数量统计",
                            "linkUrl":"report_member.html",
                            "children":[]
                        },
                        {
                            "path": "/5-2",
                            "title": "预约套餐人数比例统计",
                            "linkUrl":"report_setmeal.html",
                            "children":[]
                        },
						{
							"path": "/5-3",
							"title": "运营数据统计",
							"linkUrl":"report_business.html",
							"children":[]
						}
                    ]
                }
            ],
            username:null  // 显示用户名
        },
		 //发送请求获取当前登录用户的用户名
		created:function () {
            //发送请求获取当前登录用户的用户名            
        }
    });
    $(function() {
		var wd = 200;
		$(".el-main").css('width', $('body').width() - wd + 'px');
    });
</script>
</html>
